﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace TextDungeon
{
    /// <summary>
    /// 0x00 Door
    /// 0x01 Creature
    /// 0x02 Entrence
    /// 0x03 Exit
    /// 0x04 Item
    /// 0x05 Static
    /// you can just use a byte like 0,1,2,3,4,5 but over that there does not exist any.
    /// </summary>
    public enum EntityType:byte 
    {
        Door, Creature, Entrence, Exit, Item, Static
    }
    class Entity
    {
        public Position pos;
        //public Position worldPos;
        public char symbol;
        //public string name;
        public EntityType type;



        /// <summary>
        /// Entity that will be renderd by its world pos and relavent to is local position. also contains logic on what type of entity it is. 
        /// </summary>
        /// <param name="symbol"> input a char that will define the object on the screen</param>
        /// <param name="pos">local position if the world pos is the same as the player</param>
        /// <param name="world">Where on the world the entity will be renderd</param>
        /// <param name="type">What type, can handle byte codes</param>
        public Entity(char symbol, Position pos,EntityType type = EntityType.Static) 
        {
            
            this.symbol = symbol;
            this.pos = pos;
            this.type = type;

        }

    }
}
